#!/user/bin/env python3
# -*- coding: utf-8 -*-
import unittest


def add(x, y):
    return x + y


class Test03(unittest.TestCase):

    # 定义测试方法，以test开头
    def test_add01(self):
        # 调用 函数
        result = add(1, 0)
        # assert result == 3
        print(f'結果為：{result}')

    def test_add02(self):
        result = add(2, 0)
        # print(f'結果為：{result}')
        assert result == 4

    def test_add03(self):
        result = add(2, 1)
        # print(f'結果為：{result}')
        assert result == 3